package com.example.mvvm_base.view;

import android.graphics.Color;
import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;

public abstract class BaseSimpleView<VDB extends ViewDataBinding> extends AppCompatActivity {
    protected VDB viewBinding;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        viewBinding= DataBindingUtil.setContentView(this,getLayoutId());
        initControlView();
        initData();
    }

    protected abstract void initData();


    protected abstract int getLayoutId();
    protected abstract void initControlView();


}
